home *** CD-ROM | disk | FTP | other *** search
- # THIS SCRIPT WAS GENERATED ON 04-03-1996 AT 22:47:22
- world A # Asylum
- room C # Examination Room
- nodeview 4G # Nodeview 4G (1382)
- # SCRIPT VERSION: 24.9
- puzzle:26999 { # AUTO-PRELOAD-OF-ANIMATION
- results {
- action:animpreload:27000(ac4ga41c.avi 0 0 0 15)
- }
- flags {
- DO_ME_NOW
- ONCE_PER_INST
- }
- }
-
- # PUZZLES
- puzzle:6646 { # ac4g-ac4f_nav (closed safe)
- criteria {
- [6613] = 2 # state of safe
- [6645] = 1 # ac4g-ac4f
- }
- results {
- action:assign(6645, 0) # ac4g-ac4f
- action:dissolve
- event:change_location(A,C,4F,0)
- }
- flags {
- ONCE_PER_INST
- }
- }
- puzzle:6662 { # combo 0
- criteria {
- [6643] = 36 # AC4G Lever
- [6682] = 0 # safe counter
- }
- criteria {
- [6682] = 0 # safe counter
- [6643] = 35 # AC4G Lever
- }
- criteria {
- [6682] = 0 # safe counter
- [6643] = 37 # AC4G Lever
- }
- results {
- action:assign(6682, 1) # safe counter
- action:assign(6662, 0) # combo 0
- }
- flags {
- ONCE_PER_INST
- }
- }
- puzzle:6663 { # combo 1
- criteria {
- [6643] = 24 # AC4G Lever
- [6682] = 1 # safe counter
- }
- criteria {
- [6643] = 23 # AC4G Lever
- [6682] = 1 # safe counter
- }
- criteria {
- [6643] = 25 # AC4G Lever
- [6682] = 1 # safe counter
- }
- results {
- action:assign(6663, 0) # combo 1
- action:assign(6682, 2) # safe counter
- }
- flags {
- ONCE_PER_INST
- }
- }
- puzzle:6664 { # combo 2
- criteria {
- [6643] = 36 # AC4G Lever
- [6682] = 2 # safe counter
- }
- criteria {
- [6643] = 37 # AC4G Lever
- [6682] = 2 # safe counter
- }
- criteria {
- [6643] = 35 # AC4G Lever
- [6682] = 2 # safe counter
- }
- results {
- action:assign(6664, 0) # combo 2
- action:assign(6682, 3) # safe counter
- }
- flags {
- ONCE_PER_INST
- }
- }
- puzzle:6665 { # combo 3
- criteria {
- [6643] = 20 # AC4G Lever
- [6682] = 3 # safe counter
- }
- criteria {
- [6643] = 21 # AC4G Lever
- [6682] = 3 # safe counter
- }
- criteria {
- [6643] = 19 # AC4G Lever
- [6682] = 3 # safe counter
- }
- results {
- action:assign(6665, 0) # combo 3
- action:assign(6682, 4) # safe counter
- }
- flags {
- ONCE_PER_INST
- }
- }
- puzzle:6667 { # combo 4
- criteria {
- [6643] = 18 # AC4G Lever
- [6682] = 4 # safe counter
- }
- criteria {
- [6643] = 19 # AC4G Lever
- [6682] = 4 # safe counter
- }
- criteria {
- [6643] = 17 # AC4G Lever
- [6682] = 4 # safe counter
- }
- results {
- action:assign(6667, 0) # combo 4
- action:assign(6682, 5) # safe counter
- action:disable_control(6643) # AC4G Lever
- action:disable_control(6674) # open safe
- action:disable_control(6645) # ac4g-ac4f
- background:timer:7494(3)
- }
- flags {
- ONCE_PER_INST
- }
- }
- puzzle:6673 { # INITIAL AC4G
- criteria {
- }
- results {
- action:assign(6674, 0) # open safe
- action:set_screen(ac4gb11c.tga)
- action:disable_control(6674) # open safe
- }
- flags {
- ONCE_PER_INST
- DO_ME_NOW
- }
- }
- puzzle:6677 { # reset 0
- criteria {
- [6643] ! 37 # AC4G Lever
- [6643] ! 36 # AC4G Lever
- [6643] ! 35 # AC4G Lever
- [6682] = 1 # safe counter
- }
- results {
- action:assign(6682, 0) # safe counter
- action:assign(6677, 0) # reset 0
- }
- flags {
- ONCE_PER_INST
- }
- }
- puzzle:6678 { # reset 1
- criteria {
- [6643] ! 25 # AC4G Lever
- [6643] ! 24 # AC4G Lever
- [6643] ! 23 # AC4G Lever
- [6682] = 2 # safe counter
- }
- results {
- action:assign(6678, 0) # reset 1
- action:assign(6682, 0) # safe counter
- }
- flags {
- ONCE_PER_INST
- }
- }
- puzzle:6679 { # reset 2
- criteria {
- [6643] ! 37 # AC4G Lever
- [6643] ! 36 # AC4G Lever
- [6643] ! 35 # AC4G Lever
- [6682] = 3 # safe counter
- }
- results {
- action:assign(6679, 0) # reset 2
- action:assign(6682, 0) # safe counter
- }
- flags {
- ONCE_PER_INST
- }
- }
- puzzle:6680 { # reset 3
- criteria {
- [6643] ! 21 # AC4G Lever
- [6643] ! 20 # AC4G Lever
- [6643] ! 19 # AC4G Lever
- [6682] = 4 # safe counter
- }
- results {
- action:assign(6680, 0) # reset 3
- action:assign(6682, 0) # safe counter
- }
- flags {
- ONCE_PER_INST
- }
- }
- puzzle:6681 { # reset 4
- criteria {
- [6643] ! 19 # AC4G Lever
- [6643] ! 18 # AC4G Lever
- [6643] ! 17 # AC4G Lever
- [6682] = 5 # safe counter
- }
- results {
- action:assign(6681, 0) # reset 4
- action:assign(6682, 0) # safe counter
- }
- flags {
- ONCE_PER_INST
- }
- }
- puzzle:6683 { # safe open (empty) 0
- criteria {
- [6682] = 5 # safe counter
- [6690] ! 0 # stomach jar
- [6674] = 1 # open safe
- }
- results {
- action:assign(6674, 0) # open safe
- action:assign(6613, 3) # state of safe
- action:disable_control(6645) # ac4g-ac4f
- action:disable_control(6674) # open safe
- action:syncsound(27000 0 ac4fq2tc.raw 22050 16 1 0) #b
- background:playpreload:6676(27000 0 0 511 319 57 82 1)
- }
- flags {
- ONCE_PER_INST
- }
- }
- puzzle:6685 { # safe open (empty) 1
- criteria {
- [6676] = 2 # open safe (jar) tag 1
- }
- results {
- action:assign(6676, 0) # open safe (jar) tag 1
- event:change_location(A,C,4H,0)
- action:enable_control(6645) # ac4g-ac4f
- action:enable_control(6674) # open safe
- }
- flags {
- ONCE_PER_INST
- }
- }
- puzzle:6686 { # safe open (jar) 0
- criteria {
- [6682] = 5 # safe counter
- [6674] = 1 # open safe
- [6690] = 0 # stomach jar
- }
- criteria {
- [7199] = 1 # make opening sound
- [7200] = 2 # make opening sound_bg_task
- }
- results {
- action:assign(6674, 0) # open safe
- action:assign(6613, 3) # state of safe
- action:assign(7200, 0) # make opening sound_bg_task
- action:assign(7199, 0) # make opening sound
- action:disable_control(6643) # AC4G Lever
- action:disable_control(6674) # open safe
- action:disable_control(6645) # ac4g-ac4f
- action:disable_control(6672) # get-drop stomach jar
- action:syncsound(27000 0 ac4fq2tc.raw 22050 16 1 0) #b
- background:playpreload:6675(27000 0 0 511 319 0 27 1)
- }
- flags {
- ONCE_PER_INST
- }
- }
- puzzle:6688 { # safe open (jar) 1
- criteria {
- [6675] = 2 # open safe (jar) tag
- }
- results {
- action:assign(6675, 0) # open safe (jar) tag
- action:enable_control(6645) # ac4g-ac4f
- action:enable_control(6674) # open safe
- event:change_location(A,C,4H,0)
- action:enable_control(6672) # get-drop stomach jar
- }
- flags {
- ONCE_PER_INST
- }
- }
- puzzle:6844 { # enable open safe
- criteria {
- [6675] ! 1 # open safe (jar) tag
- [7494] ! 1 # combo 4_Timer
- [6682] = 5 # safe counter
- }
- results {
- action:enable_control(6674) # open safe
- action:assign(217, 0)
- action:assign(13, 0)
- }
- flags {
- ONCE_PER_INST
- }
- }
- puzzle:7163 { # make click
- criteria {
- [7160] ! [6643]
- }
- results {
- action:assign(7160, [6643])
- action:assign(7163, 0) # make click
- background:music:7164(0 ac4fq1tc.raw 0)
- }
- flags {
- ONCE_PER_INST
- }
- }
- puzzle:7199 { # make opening sound
- criteria {
- [7494] = 2 # combo 4_Timer
- [6682] = 5 # safe counter
- }
- results {
- action:assign(7494, 0) # combo 4_Timer
- background:music:7200(0 ac4gh2tc.raw 0)
- }
- }
-
- # CONTROLS
- control:6643 safe {
- animation(ac4ga11c.avi)
- rectangle(157 55 333 271)
- anim_task_id(6644)
- center(250 158)
- num_states(40)
- dial_inner_radius(36)
- radius(53)
- zero_radians_offset(9)
- pointer_offset(19)
- }
- control:6645 push_toggle { # ac4g-ac4f
- flat_hotspot(3,281,503,35)
- cursor(backward)
- }
- control:6674 push_toggle { # open safe
- flat_hotspot(229,132,43,44)
- cursor(active)
- }
- # state 6682 has been reserved as a global variable (safe counter)
- # state 6690 has been reserved as a global variable (stomach jar)
- # state 7160 has been reserved as a global variable (last number)
-
- # AUTO-BACKWARDS PUZZLES AND CONTROLS
- control:25500 flat {
- }
-